package com.crm.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公司联系人
 * </p>
 *
 * @author zjd
 * @since 2021-04-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_contact")
@ApiModel(value="Contact对象", description="公司联系人")
public class Contact extends Model {

    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "联系人邮箱")
    private String email;

    @ApiModelProperty(value = "联系人姓")
    private String firstName;

    @ApiModelProperty(value = "联系人名称")
    private String lastName;

    @ApiModelProperty(value = "所属用户id")
    private Long ownerUserId;

    @ApiModelProperty(value = "创建联系人用户id")
    private Long createUserId;

    @ApiModelProperty(value = "职务")
    private String jobTitle;

    @ApiModelProperty(value = "手机号")
    private Long phoneNumber;

    @ApiModelProperty(value = "生命周期")
    private Long lifecycleStage;

    @ApiModelProperty(value = "所属公司id")
    private Long companyId;

    @ApiModelProperty(value = "潜在客户状态")
    private Long leadStatus;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    @TableLogic
    private Long isDelete;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Long version;




}
